<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form id="login_form">
    <input type="text" name="uname" id="username"> <br>
    <input type="email" name="email" id="email">
    <button type="button" id="btn_login">login</button>
</form>

<!--    引入jquery框架-->
<script src="/boot/plugins/jquery/jquery.min.js"></script></body>
<script>
    $(function (){})
        $("#btn_login").click(function (){
            let url='/boot/ajax/hello01';
            let username=$("#username").val();
            let email=document.querySelector("#email").value;
            let data={uname:username,email:email};
            $.get(url,data,function (res){
                console.log(res)
            })
        })
</script>
</html>
